﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DropDownList.aspx.cs" Inherits="WaterApp.Business.DropDownList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>下拉列表维护</title>
    <link href="../Styles/if.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div style="width:100%; background-color: #E0E0E0; height:30px; 
                font-family:宋体; font-size:12px; font-weight:bold; line-height:30px;">
      查询和报表=>下拉列表维护
    </div>
    <br />
    <br />
    <div style="width: 85%; height: 50px;">
                </div>
                <asp:DataGrid ID="dgdownlist" runat="server" Width="80%" AutoGenerateColumns="false"
                             AllowPaging="true" PageSize="15" PagerStyle-Mode="NumericPages" ItemStyle-Font-Size="10pt"
                             ShowFooter="true" 
                             OnItemCommand="dgdownlist_ItemCommand" 
                             OnEditCommand="dgdownlist_EditCommand"
                             OnCancelCommand="dgdownlist_CancelCommand" 
                             OnDeleteCommand="dgdownlist_DeleteCommand"
                             OnUpdateCommand="dgdownlist_UpdateCommand" 
                             OnPageIndexChanged="dgdownlist_PageIndexChanged">
                    <HeaderStyle CssClass="poputopbj" Font-Names="Arial,宋体" Font-Size="12px" Font-Bold="true" /> 
                    <SelectedItemStyle BackColor="#dcdcdc" Font-Bold="true" />
                    <AlternatingItemStyle BackColor="#F7F7F7"></AlternatingItemStyle>
                    <PagerStyle CssClass="dgpagerstyle" />
                    <Columns>
                        <asp:BoundColumn DataField="SID" Visible="false" ReadOnly="true"></asp:BoundColumn>
                        <asp:TemplateColumn ItemStyle-Width="50px" HeaderStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <b>父编码</b></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="itparent" runat="server" Width="50px" Text='<%# DataBinder.Eval(Container.DataItem, "SELParent")%>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="etparent" runat="server" Width="50px" Text='<%# DataBinder.Eval(Container.DataItem, "SELParent")%>'></asp:TextBox>
                            </EditItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="ftparent" runat="server" Width="50px" CssClass="repaymenttb" />
                            </FooterTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-Width="100px" HeaderStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <b>下拉列表编码</b></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="itselid" runat="server" Width="100px" Text='<%# DataBinder.Eval(Container.DataItem, "SELID")%>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="etselid" runat="server" Width="100px" Text='<%# DataBinder.Eval(Container.DataItem, "SELID")%>'></asp:TextBox>
                            </EditItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="ftselid" runat="server" Width="100px" CssClass="repaymenttb" />
                            </FooterTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-Width="260px" HeaderStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <b>下拉列表值</b></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="itselvalue" runat="server" Width="260px" Text='<%# DataBinder.Eval(Container.DataItem, "SELVALUE")%>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="etselvalue" runat="server" Width="260px" Text='<%# DataBinder.Eval(Container.DataItem, "SELVALUE")%>'></asp:TextBox>
                            </EditItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="ftselvalue" runat="server" Width="260px" CssClass="repaymenttb" />
                            </FooterTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-Width="150px" HeaderStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <b>备注</b></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="itmemo" runat="server" Width="150px" Text='<%# DataBinder.Eval(Container.DataItem, "Memo")%>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="etmemo" runat="server" Width="150px" Text='<%# DataBinder.Eval(Container.DataItem, "Memo")%>'></asp:TextBox>
                            </EditItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="ftmemo" runat="server" Width="150px" CssClass="repaymenttb"></asp:TextBox>
                            </FooterTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-Width="40px" HeaderText="选择" HeaderStyle-Font-Bold="true">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkSel" runat="server" CommandName="Select" ToolTip="单击选中此行"
                                    Text="<img alt='' src ='../Images/fammn_icons/icon_accept.gif' class='imgmiddle' />">
                                    </asp:LinkButton>
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:LinkButton ID="lnksave" runat="server" CommandName="Add" Width="30px" ToolTip="保存数据"
                                    Text="<img alt='' src ='../Images/fammn_icons/page_new.gif' class='imgmiddle' />">
                                    </asp:LinkButton>
                            </FooterTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-Width="40px" HeaderText="编辑" HeaderStyle-Font-Bold="true">
                            <ItemTemplate>
                                <asp:LinkButton ID="linkbedit" runat="server" CommandName="Edit" Width="30px" 
                                    Text="<img alt='' src='../Images/fammn_icons/edit.gif' class='imgborder' />"
                                    ToolTip="单击编辑此行"></asp:LinkButton>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:LinkButton ID="linkbupdate" runat="server" CommandName="Update" Width="30px"
                                    ToolTip="保存修改" Text="<img alt='' src='../Images/fammn_icons/save.gif' class='imgborder' />">
                                    </asp:LinkButton>
                                <asp:LinkButton ID="lindbcancel" runat="server" CommandName="Cancel" Width="30px"
                                    ToolTip="取消修改" Text="<img alt='' src='../Images/fammn_icons/clear.gif' class='imgborder' />">
                                    </asp:LinkButton>
                                <asp:LinkButton ID="lnkDel" runat="server" CommandName="Delete" Width="30px" ToolTip="删除"
                                    Text="<img alt='' src='../Images/fammn_icons/action_stop.gif' class='imgborder' />">
                                    </asp:LinkButton>
                            </EditItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                </asp:DataGrid>
    </div>
    </form>
</body>
</html>
